import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    clientHeight: document.documentElement.clientHeight,
    clientWidth: document.documentElement.clientWidth,
    importStatus: '3', /***0-开始导入 1-正在上传  3-空闲*/
    importDialog:false,/**导入日志框显示或隐藏 */
  },
  mutations: {
    onresize(state) {
      state.clientHeight = document.documentElement.clientHeight;
    },
    updateImportStatus(state, status) {
      state.importStatus = status;
    },
    updateImportDialog(state, status) {
      state.importDialog = status;
    }
  },
  actions: {
  }
})
